﻿@using System.Threading
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Demo</title>
    <!-- Latest compiled and minified CSS -->
    <link href="~/Content/bootstrap-3.2.0/css/bootstrap.min.css" rel="stylesheet" />
    <link href="@Url.Content("~/Content/css/site.css")" rel="stylesheet" />
    @RenderSection("Styles", false)

    <script src="~/Scripts/jquery-1.10.2.min.js"></script>
    <script src="~/Scripts/jquery-ui.min.js"></script>
    <script src="~/Content/bootstrap-3.2.0/js/bootstrap.min.js"></script>
    <script src="~/Scripts/lib/bootbox/bootbox.min.js"></script>

    <script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>
    <script src="~/Scripts/jquery.validate.min.js"></script>
    <script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>

    <script src="~/Content/js/public.common.js"></script>
    <script type="text/javascript">
        $(function () {
            $('form').submit(function () {
                if ($(this).valid()) {
                    $('form button[data-loading-text]').button('loading');
                    return true;
                }
                return false;
            });
        });
    </script>


</head>
<body>
    <div class="container-fluid">
        <nav class="navbar navbar-default" role="navigation">
            <div class="container-fluid">
                <!-- Brand and toggle get grouped for better mobile display -->
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="#">Demo</a>

                </div>

                <!-- Collect the nav links, forms, and other content for toggling -->
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
     
                    <ul class="nav navbar-nav">

                        <li class="active">@Html.RouteLink("Admin", "Admin")</li>
                        @{ Html.RenderAction("List", new {controller = "Language"}); }
                        @*<li>
                            @Html.ActionLink(Word("Add").ToString(), "TransactionalInsert",new{controller="Product"}, new { @class = "glyphicon glyphicon-plus" })
                        </li>*@
                    </ul>
                    <form class="navbar-form navbar-left" role="search">
                        <div class="form-group">
                            <input type="text" class="form-control" placeholder="@Word("Main.Product.Search")">
                        </div>
                        <button type="submit" class="btn btn-default">@Word("Main.Product.Search")</button>
                    </form>
                    <ul class="nav navbar-nav navbar-right">
                        <li id="cart">
                            @{
                                Html.RenderAction("CartSummary", "Cart");
                            }
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
        <div id="loading" class="alert alert-warning" style="display: none;">
            <b>@Word("General.Wait") !</b> @Word("General.Loading")...
        </div>
        @Html.Partial("_Notification")
        <div class="row">
            <div class="col-lg-2 col-md-4 col-sm-6 col-xs-12">
                @{
                    Html.RenderAction("Login", "Account");
                }
                
                @{
                    Html.RenderAction("List", "Category");
                }
            </div>
            <div class="col-lg-10 col-md-8 col-sm-6 col-xs-12">
                @RenderBody()
            </div>
        </div>
    </div>
    @Html.Partial("_Timeout")
    @RenderSection("Scripts", false)
</body>
</html>
